#include <16f1824.h>

#device ICD=TRUE

#FUSES NOWDT                 	//No Watch Dog Timer
#FUSES INTRC_IO              	//Internal RC Osc, no CLKOUT
#FUSES WDT_SW                
#FUSES NOPUT                 	//No Power Up Timer
#FUSES MCLR                  	//Master Clear pin enabled
#FUSES NOPROTECT             	//Code not protected from reading
#FUSES CPD                 	//No EE protection
#FUSES NOBROWNOUT            	//No brownout reset
#FUSES NOCLKOUT              
#FUSES IESO                  	//Internal External Switch Over mode enabled
#FUSES FCMEN                 	//Fail-safe clock monitor enabled
#FUSES NOWRT                 	//Program memory not write protected
#FUSES PLL                   
#FUSES STVREN                	//Stack full/underflow will cause reset
#FUSES BORV19                
#FUSES DEBUG               	//No Debug mode for ICD
#FUSES NOLVP                 	//No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O

#USE delay(clock=4000000)
#USE spi(MASTER, FORCE_HW, BITS=16, BAUD=9600)

#define load		PIN_C3


void main(void)
{
	while(TRUE)
	{
	output_low(load);
	spi_xfer(0x1212);
	output_high(load);
	delay_ms(1);

	}


}